package com.hangsu.train.core.keygen;


import com.hangsu.train.common.utils.SnowFlake;

public class SnowflakeKeyGenerate implements KeyGenerate {

    private final SnowFlake snowFlake = new SnowFlake(2, 3);

    @Override
    public Long generateKey() {
        return snowFlake.nextId();
    }
}
